import request from '@/utils/request'

// 查询巡检列表
export function listAfInspection(query) {
  return request({
    url: '/security/afInspection/list',
    method: 'get',
    params: query
  })
}

// 查询巡检详细
export function getAfInspection(id) {
  return request({
    url: '/security/afInspection/' + id,
    method: 'get'
  })
}

// 新增巡检
export function addAfInspection(data) {
  return request({
    url: '/security/afInspection',
    method: 'post',
    data: data
  })
}

// 修改巡检
export function updateAfInspection(data) {
  return request({
    url: '/security/afInspection',
    method: 'put',
    data: data
  })
}

// 删除巡检
export function delAfInspection(id) {
  return request({
    url: '/security/afInspection/' + id,
    method: 'delete'
  })
}
